// http://localhost:8080/api/
// https://www.live-stock.org
// const ipAddress = 'http://localhost:8080'
const ipAddress = ''

import api from './http'

// 登录
export const loginApi = (params) => api.post(ipAddress + '/admin/AdminUser/login', params) // 登录
export const logOutAndLogIn = (params) => api.post(ipAddress + '/admin/AdminUser/logout', params) // 退出登录
export const obtainVerificationCode = (params) => api.post(ipAddress + '/admin/AdminUser/captcha', params) // 验证码


// 菜单
export const menuBar = (params) => api.post(ipAddress + '/admin/AdminUser/Menulist', params) // 菜单列表
export const menuList2 = (params) => api.post(ipAddress + '/admin/AdminMenu/index', params) // 菜单列表2
export const menuEditing = (params) => api.post(ipAddress + '/admin/AdminMenu/upd', params) // 菜单编辑

// AMO
export const homepageList = (params) => api.post(ipAddress + '/admin/About/list', params) // AMO列表
export const homePageEditing = (params) => api.post(ipAddress + '/admin/About/upd', params) // AMO编辑


// 服务
export const obtainServiceContent = (params) => api.post(ipAddress + '/admin/Expertise/list', params) // 获取服务内容
export const updateServiceContent = (params) => api.post(ipAddress + '/admin/Expertise/upd', params) // 更新服务内容



// 事业
export const obtainCareerContent = (params) => api.post(ipAddress + '/admin/Careers/list', params) // 获取事业内容
export const updateBusinessContent = (params) => api.post(ipAddress + '/admin/Careers/upd', params) // 更新事业内容



// 客户
export const customerList = (params) => api.post(ipAddress + '/admin/Clients/list', params) // 客户列表
export const customerAddition = (params) => api.post(ipAddress + '/admin/Clients/add', params) // 客户添加
export const customerEditor = (params) => api.post(ipAddress + '/admin/Clients/upd', params) // 客户编辑
export const clientsRemoving = (params) => api.post(ipAddress + '/admin/Clients/del', params) // 客户删除


// 消息
export const messageList = (params) => api.post(ipAddress + '/admin/Article/list', params) // 消息列表
export const messageAddition = (params) => api.post(ipAddress + '/admin/Article/add', params) // 消息添加
export const messageEditing = (params) => api.post(ipAddress + '/admin/Article/upd', params) // 消息编辑
export const messageDeletion = (params) => api.post(ipAddress + '/admin/Article/del', params) // 消息删除

// 联络
export const contactList = (params) => api.post(ipAddress + '/admin/Contact/list', params) // 联络列表
export const contactAdd = (params) => api.post(ipAddress + '/admin/Contact/add', params) // 联络添加
export const contactEditor = (params) => api.post(ipAddress + '/admin/Contact/upd', params) // 联络编辑
export const contactDeletion = (params) => api.post(ipAddress + '/admin/Contact/del', params) // 联络删除


// 首页轮播
export const homepageCarouselList = (params) => api.post(ipAddress + '/admin/Banner/list', params) // 首页轮播列表
export const addHomepageCarousel = (params) => api.post(ipAddress + '/admin/Banner/add', params) // 首页轮播添加
export const homepageCarouselEditor = (params) => api.post(ipAddress + '/admin/Banner/upd', params) // 首页轮播编辑
export const homepageCarouselDeletion = (params) => api.post(ipAddress + '/admin/Banner/del', params) // 首页轮播删除
